package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 攻略对象 travel_guide
 *
 * @author Y.C
 * @date 2024-02-21
 */
@TableName(value ="travel_guide")
@Data
public class TravelGuide
{
    private static final long serialVersionUID = 1L;

    /** 旅游攻略 */
    @TableId(type = IdType.AUTO)
    private Long strategyId;

    /** 攻略标题 */
    @Excel(name = "攻略标题")
    private String strategyTitle;

    /** 攻略内容 */
    @Excel(name = "攻略内容")
    private String strategyContent;

    /** 攻略浏览量 */
    @Excel(name = "攻略浏览量")
    private String strategyViewCount;

    /** 攻略点赞量 */
    @Excel(name = "攻略点赞量")
    private String strategyLikeCount;

    /** 攻略封面图片 */
    @Excel(name = "攻略封面图片")
    private String strategyImageUrl;

    /** 攻略评分 */
    @Excel(name = "攻略评分")
    private String strategyRating;

    /** 状态 */
    @Excel(name = "状态")
    private String status;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", prompt = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)//创建与修改时自动填充
    private Date createTime;

    /**
     * 更新新时间
     */
    @Excel(name = "更新新时间", prompt = "更新新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)//创建与修改时自动填充
    private Date updateTime;

    /** 逻辑删除1删除0正常 */
    @Excel(name = "逻辑删除1删除0正常")
    private Long isDelete;

}
